Next | Prev | Up | Top | Contents | Index
Linking Your Application
The cc driver automatically picks the correct compiler, linker, and library paths if you use the -32 or -64 switches on the command line. If you compile and link separately, you must use these switches on both the cc driver and ld command lines. If you link with libraries that are not included with the O/S or compiler, you must make sure that they are of the proper type. Remember, you can't link 32-bit applications with 64-bit .so's or 64-bit libraries and vice versa.
To create your own 64-bit or 32-bit libraries, you must supply the correct switch on the archiver command line.
- Libraries
-
Next | Prev | Up | Top | Contents | Index